﻿<UserControl x:Class="Pdf2epub.UI.SubblockRenderer"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" xmlns:Pdf2epub="clr-namespace:Pdf2epub"
             mc:Ignorable="d"
             d:DesignHeight="300" d:DesignWidth="300">

    <UserControl.CommandBindings>
        <CommandBinding Command="Pdf2epub:Pdf2EpubCommands.InsertTableRow" CanExecute="InsertTableRowCanExecute" Executed="OnCommandExecuted" />
        <CommandBinding Command="Pdf2epub:Pdf2EpubCommands.InsertTableColumn" CanExecute="InsertTableColumnCanExecute" Executed="OnCommandExecuted" />
        <CommandBinding Command="Pdf2epub:Pdf2EpubCommands.RemoveLastRow" CanExecute="RemoveLastRowExecute" Executed="OnCommandExecuted" />
        <CommandBinding Command="Pdf2epub:Pdf2EpubCommands.RemoveLastColumn" CanExecute="RemoveLastColumnCanExecute" Executed="OnCommandExecuted" />
    </UserControl.CommandBindings>

    <Grid Name="mainGrid">
        <StackPanel Orientation="Vertical">
            <StackPanel Orientation="Horizontal" Name="pnCaption" Visibility="Hidden">
                <Label Content="Caption: " FontWeight="Bold" />
                <TextBox Name="tbHeader" Width="600" TextWrapping="WrapWithOverflow" />
            </StackPanel>

            <Grid Name="grid">
            </Grid>

            <StackPanel Name="buttonPanel" Orientation="Horizontal" Visibility="Hidden" HorizontalAlignment="Right">
                <Button Command="Pdf2epub:Pdf2EpubCommands.InsertTableRow">Add Row</Button>
                <Button Command="Pdf2epub:Pdf2EpubCommands.RemoveLastRow">Remove Last Row</Button>
                <Button Command="Pdf2epub:Pdf2EpubCommands.InsertTableColumn">Add Column</Button>
                <Button Command="Pdf2epub:Pdf2EpubCommands.RemoveLastColumn">Remove Last Column</Button>
            </StackPanel>
        </StackPanel>
    </Grid>
</UserControl>